package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitShangbiaoRouter(Router *gin.RouterGroup) {
	ShangbiaoRouter := Router.Group("shangbiao").Use(middleware.OperationRecord())
	{
		ShangbiaoRouter.POST("createShangbiao", v1.CreateShangbiao)   // 新建Shangbiao
		ShangbiaoRouter.DELETE("deleteShangbiao", v1.DeleteShangbiao) // 删除Shangbiao
		ShangbiaoRouter.DELETE("deleteShangbiaoByIds", v1.DeleteShangbiaoByIds) // 批量删除Shangbiao
		ShangbiaoRouter.PUT("updateShangbiao", v1.UpdateShangbiao)    // 更新Shangbiao
		ShangbiaoRouter.GET("findShangbiao", v1.FindShangbiao)        // 根据ID获取Shangbiao
		ShangbiaoRouter.GET("getShangbiaoList", v1.GetShangbiaoList)  // 获取Shangbiao列表
	}
}
